package net.lab1024.sa.admin.module.business.roland.domain.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 客户信息表 新建表单
 *
 * @Author dragon
 * @Date 2023-12-11 13:27:12
 * @Copyright dragon
 */

@Data
public class RolandCustomerAddForm {

    @ApiModelProperty(value = "学生姓名", required = true)
    @NotBlank(message = "学生姓名 不能为空")
    private String studentName;

    @ApiModelProperty(value = "免费票数")
    private Integer freeNum;

    @ApiModelProperty(value = "限购票数")
    private Integer totalNum;

    @ApiModelProperty(value = "表演曲目")
    private List<Integer> performanceTypeIds;

    public Integer getFreeNum() {
        return freeNum != null ? freeNum : 0;
    }

    public Integer getTotalNum() {
        return totalNum != null ? totalNum : 0;
    }
}